scipy stats arithmetic mean

56

scipy stats arithmetic mean -

from scipy import stats
>>> x = np.arange(20)
>>> stats.tmean(x)
9.5
>>> stats.tmean(x, (3,17))
10.0

Comments

Submit
0 Comments